<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>客服中心</title>
  <link rel="shortcut icon" href="../rent.ico" type="image/x-icon" />
  <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap-grid.css" rel="stylesheet">
  <link rel="stylesheet" href="../public/css/shenqingtuikuan_buy.css">
    <link rel="stylesheet" href="../public/libs/vant.css">
    <style>
    header{
      background-color: #2db7f5;
      color: #fff;
    }
    .header-top>p {
      position: absolute;
      top: 50%;
      right: 2%;
      font-size: 16px;
      font-weight: 600;
      transform: translate(-50%, -50%);
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      -o-transform: translate(-50%, -50%);
    }

    #div {
      overflow: auto;
    }
    .p{
      font-size: 20px;
    }

    .dot:hover {
      background-color: transparent;
    }

    .dot.tag {
      background-color: #979797;
    }

    main {
      width: 100%;
      padding: 0 5%;
    }


    main ul li {
    text-align: center;
      margin-top: 10px;
    }

    main ul li img {
      /*position: relative;*/
      /*margin: 0 auto;*/
      width: 100%;
      height: 70%;
    }

    main p {
      padding-left: 5%;
      /*text-align: left;*/
      width: 90%;
      word-wrap: break-word;
      word-break: break-all;
      overflow: hidden;
    }
    main ul{
      font-size: 20px;
    }
    /* 媒体查询 */
    @media screen and (min-width: 500px) {

      main ul li img {
        position: relative;
        margin: 0 auto;
        width: 70%;
        /*height: 70%;*/
      }

    }
  </style>
</head>

<body>
  <div id="app">
    <header>
      <div class="header-top">
        <a onclick="javascript:window.history.back();">
          <img src="../public/img/fanhui_left.png" alt="">
        </a>
        <span>客服中心</span>
        <!-- <p @click="dating">下一步</p> -->
      </div>
    </header>

    <main>
      <ul>
        
        <li v-for="(item,index) in list">
          <p class="p" >{{item.guidetext}}</p>
          <a :href="item.url" v-if="item.url!=''"><p class="p" >{{item.url}}</p></a>
          <!-- <div v-y="data"></div> -->
          <img :src="item.guidePath" v-show="item.guidePath!=''">
        </li>
        <!-- <li>
              <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1600701903130&di=b94515d810bb4b37c20d7d05988e0001&imgtype=0&src=http%3A%2F%2Fphotos.tuchong.com%2F536752%2Ff%2F31282367.jpg"
                  alt="">
              <p>dsafhjklsadfjlajfldsajfldasjflajfdlsajflsakfjlsafjlsadkfjslkaf</p>
          </li>
          <li>
            <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1600701903130&di=b94515d810bb4b37c20d7d05988e0001&imgtype=0&src=http%3A%2F%2Fphotos.tuchong.com%2F536752%2Ff%2F31282367.jpg"
                alt="">
            <p>dsafhjklsadfjlajfldsajfldasjflajfdlsajflsakfjlsafjlsadkfjslkaf</p>
        </li>
        <li>
          <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1600701903130&di=b94515d810bb4b37c20d7d05988e0001&imgtype=0&src=http%3A%2F%2Fphotos.tuchong.com%2F536752%2Ff%2F31282367.jpg"
              alt="">
          <p>dsafhjklsadfjlajfldsajfldasjflajfdlsajflsakfjlsafjlsadkfjslkaf</p>
      </li> -->
      </ul>
    </main>

  </div>




  <script src="../public/libs/vue.min.js"></script>
  <!-- <script src="https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js"></script> -->
  <script src="../public/libs/jquery-3.4.1.min.js"></script>
  <script src="../public/libs/md5.js"></script>
  <script src="../public/libs/vant.js"></script>
  <script src="../public/libs/app.js"></script>
  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        data:"电话联系<br/>10;&#10;566&#10;66&#101654161;",
        list: [],
        time:5,
        page:0,
      },
      methods: {
        br:function(){
          string.replace(/(\r\n|\n|\r)/gm, "<br />")
        },
        dating: function () {
          if(this.time>0){
            app.text_show("查看新手教程五秒后才能下一步");
            return
          }
          this.page++;
          this.time=5;
          var a =setInterval(() => {
            vm.time--;
            if(vm.time==0){
              clearInterval(a);
            }
          }, 1000);
          if(this.page==this.list.length){
            window.location.href = "dating.html"
          }
        },
        init: function () {
          var a =setInterval(() => {
            vm.time--;
            if(vm.time==0){
              clearInterval(a);
            }
          }, 1000);
          $.ajax({
            method: 'get',
            url: app.webUrl + '/guide/selcall',
            data:{},
            success: function (ret) {
              vm.list = ret.data
            }
          });
        },
      },
      mounted: function () {
        this.init();
      },
    })

  </script>
</body>

</html>